@extends('home.base.user')
@section('content')
    <div class="f_r personal_r">
		<div class="personal_r_t"></div>
		<div class="personal_r_m">
			<div class="personal_r_m_t coll_t">
				<p class="f_l">您好，<strong>{{ session()->get('homeuser')->username }}</strong>。欢迎您回来！</p>
				<span class="f_r white">上一次登录时间：2010-9-17 11:11：02</span>
			</div><!--personal_r_m_t end-->
			<div class="personal_r_m_m">
				<div class="blank10"></div>
				<div class="blank20"></div>

				<div class="coll_m">
					<div class="coll_m_t"><h3>最新订单</h3></div>
					<table width="100%">
						<thead>
							<tr>
								<th>订单编号</th><th>支付方式</th><th>金额</th><th>订单状态</th><th>操作</th>
							</tr>
						</thead>
						<tbody>
                            @if($num==0)
							<tr>
								<td colspan="6">暂时没有订单信息</td>
							</tr>
                            @else
                            <span style="display:none;">{{$number=1}}</span>
                            @foreach($order as $v)
                            <tr $number%2==0?'bgcolor="#f7f7f7"':''>
								<td><a href="#" class="blue">{{$v->id}}</a></td>
								<td>支付宝</td>
								<td><span class="red">￥{{$v->total}}元</span></td>
								<td>
                                    @if($v->state==1)已确认,未付款
                                    @elseif($v->state==2)已付款,未发货
                                    @elseif($v->state==3)已发货,未收货
                                    @elseif($v->state==4)交易成功
                                    @endif
                                </td>
								<td><a href="{{url('/home1/order'.'/'.$v->id)}}" class="red">[查看]</a> |
                                    @if($v->state==3)
                                    <a href="#" class="yellow">[确认收货]</a>
                                    @endif
							</tr>
                            <span style="display:none;">{{$number++}}</span>
                            @endforeach
                            @endif
						</tbody>
					</table>
				</div><!--coll_m end-->

				<div class="blank20"></div>

				<div class="coll_m">
					<div class="coll_m_t"><h3>也许您会对下列商品感兴趣</h3></div>
					<div class="coll_m_m">
						<ul class="clearfix">
							<li>
								<div class="p_pic"><a href="#" title="优雅镂空条纹针织衫"><img src="images/women/product/0001887.jpg" alt="优雅镂空条纹针织衫" /></a></div>
								<div class="p_name"><a href="#">雅镂空条纹针织衫</a></div>
								<div class="p_price"><span class="cost">¥40元</span><span class="num">¥57元</span></div>
							</li>
							<li>
								<div class="p_pic"><a href="#" title="经典高领长袖打底衫"><img src="images/women/product/0000665.jpg" alt="经典高领长袖打底衫" /></a></div>
								<div class="p_name"><a href="#">经典高领长袖打底衫</a></div>
								<div class="p_price"><span class="cost">¥40元</span><span class="num">¥67元</span></div>
							</li>
							<li>
								<div class="p_pic"><a href="#" title="性感高弹网袜 黑色"><img src="images/women/product/0001355.jpg" alt="性感高弹网袜 黑色" /></a></div>
								<div class="p_name"><a href="#">性感高弹网袜 黑色</a></div>
								<div class="p_price"><span class="cost">¥40元</span><span class="num">¥17元</span></div>
							</li>
							<li>
								<div class="p_pic"><a href="#" title="百搭果色天鹅绒九分连裤袜"><img src="images/women/product/0000946.jpg" alt="百搭果色天鹅绒九分连裤袜" /></a></div>
								<div class="p_name"><a href="#">百搭果色天鹅绒九分连裤袜</a></div>
								<div class="p_price"><span class="cost">¥40元</span><span class="num">¥12元</span></div>
							</li>
						</ul>
					</div>
				</div><!--coll_m end-->
			</div><!--comment end-->
		</div><!--personal_r_m end-->
		<div class="personal_r_b"></div>
	</div><!--personal_r end-->

@stop
